package com.hs.sfzy.service;

import com.github.pagehelper.PageInfo;
import com.hs.sfzy.entity.User;

import java.util.List;

public interface UserService {
    List<User> getIdAndUsername();

    User getUserById(long id);

    int insert(User user);

    int update(User user);

    int delete(Long id);

    List<User> selectAll(User user);

    PageInfo<User> pageInfo(int pageNum,int pageSize,User user);

    User login(String username,String password);

    public Object getUserCourseById(int pageNum, int pageSize, long id);
}
